package com.ticketbox.ejb.session.interfaces;

import java.util.Vector;

import javax.ejb.Local;

import com.ticketbox.entity.Role;
import com.ticketbox.entity.Ticket;
import com.ticketbox.entity.User;

@Local
public interface UserFacadeLocal {
	
	public void createUser(User user);
	
	public void modifyUser(int id, User user);
	
	public void modifyUser(User user);
	
	public User getUserById(int id);
	
	public Vector<User> findAllUsers();
	
	public Vector<User> findUsersByRole(Role role);
	
	public Vector<User> findUsersByTicket(Ticket ticket);
	
	public void deleteUser(int id);
	
	public boolean authenticate(String username, String password);
	
}
